import Vue from 'vue'
import App from './App.vue'
import router from './router/index'
import store from './store/index'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//1.引入 fastClick
import FastClick from 'fastclick'

if ('addEventListener' in document) {
    document.addEventListener('DOMContentLoaded', function() {
        FastClick.attach(document.body);
    }, false);
}
Vue.use(ElementUI);
//2.引入全局的样式
import '@/style/common.less'


//3.引入全局UI組件库 -vant
import '@/plugins/vant.js'

//4.引入rem
import '@/config/rem.js'


//5.引入全局过滤器
 import '@/config/filters'

new Vue({
	router,
	store,
  render: h => h(App)
}).$mount('#app')
